package cn.ncupyh.soft.user;

import cn.ncupyh.soft.book.BookList;
import cn.ncupyh.soft.opera.IOPeration;

//使用者
public abstract class User {
    protected String name;

    protected IOPeration[] ioPerations;

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();//菜单

    public void doWork(int choice, BookList bookList){
        this.ioPerations[choice].work(bookList);
    }

}

